package com.lab.webSocket.model;

import javax.persistence.*;

/**
 * Created by xu_jiaHui on 2017/8/31.
 */
@Entity
@Table(name = "tb_chatLog", schema = "webSocket", catalog = "")
public class ChatLogEntity {
    private Integer chatLogId;
    private String content;
    private String contentType;
    private String senderAccount;
    private String sendTime;
    private String recipientAccount;

    public ChatLogEntity() {
    }

    public ChatLogEntity(String content, String contentType, String senderAccount, String sendTime, String recipientAccount) {
        this.content = content;
        this.contentType = contentType;
        this.senderAccount = senderAccount;
        this.sendTime = sendTime;
        this.recipientAccount = recipientAccount;
    }

    @Id
    @Column(name = "chatLogId")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public Integer getChatLogId() {
        return chatLogId;
    }

    public void setChatLogId(Integer chatLogId) {
        this.chatLogId = chatLogId;
    }

    @Basic
    @Column(name = "content")
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Basic
    @Column(name = "contentType")
    public String getContentType() {
        return contentType;
    }

    public void setContentType(String contentType) {
        this.contentType = contentType;
    }

    @Basic
    @Column(name = "senderAccount")
    public String getSenderAccount() {
        return senderAccount;
    }

    public void setSenderAccount(String senderAccount) {
        this.senderAccount = senderAccount;
    }

    @Basic
    @Column(name = "recipientAccount")
    public String getRecipientAccount() {
        return recipientAccount;
    }

    public void setRecipientAccount(String recipientAccount) {
        this.recipientAccount = recipientAccount;
    }

    @Basic
    @Column(name = "sendTime")
    public String getSendTime() {
        return sendTime;
    }

    public void setSendTime(String sendTime) {
        this.sendTime = sendTime;
    }

}
